import { Component, OnInit, ViewChild, AfterViewChecked, AfterContentInit, AfterContentChecked, AfterViewInit, OnDestroy } from '@angular/core';
@Component({
  selector: 'app-child',
  templateUrl: './child.component.html',
  styleUrls: ['./child.component.css']
})
export class ChildComponent implements OnInit, AfterContentInit, AfterContentChecked, AfterViewInit, AfterViewChecked,
  OnDestroy  {


 
  private html: string;
  constructor() { }

  ngOnInit() {
    this.html = `<strong>你是假的吧<strong>`;
  }
  log(message:string) {
    console.log(message);
  }
  ngAfterContentChecked(): void {
    console.log('child content checked.');
  }
  ngAfterContentInit(): void {
    console.log('child content init.');
  }
  ngAfterViewChecked(): void {
    console.log('child view init.');
  }
  ngAfterViewInit(): void {
    console.log('child view checked.');
  }
  ngOnDestroy(): void {
    console.log('child destroyed.');
  }
}
